package com.lvchen.ui.login;

import com.lvchen.R;
import com.stephentuso.welcome.BasicPage;
import com.stephentuso.welcome.TitlePage;
import com.stephentuso.welcome.WelcomeActivity;
import com.stephentuso.welcome.WelcomeConfiguration;

/**
 * 欢迎页
 */
public class MyWelcomActivity extends WelcomeActivity{

    @Override
    protected WelcomeConfiguration configuration() {
        return new WelcomeConfiguration.Builder(this)
                .defaultBackgroundColor(R.color.blue)
                .page(new TitlePage(R.mipmap.ic_launcher,
                        "黄金比例最好喝")
                )
                .page(new BasicPage(R.mipmap.ic_launcher,
                        "调尼玛",
                        "黄金比例最好喝")
                        .background(R.color.blue)
                )
                .page(new BasicPage(R.mipmap.ic_launcher,
                        "调尼玛",
                        "黄金比例最好喝")
                        .background(R.color.blue)
                )
                .swipeToDismiss(true)
                .canSkip(false)
                .build();
    }

    @Override
    public void onPointerCaptureChanged(boolean hasCapture) {

    }
}
